<%= stylesheet_link_tag 'valleyer/personal/editPicture' %>
<%= error_messages_for 'logo', :id => 'error_messages_div' ,:header_message => '' %>

<div class="edit_picture">
  <div class="old_picture">
    <p>当前使用的头像</p>
    <div class="picture"><%= current_valleyer_logo_image_tag %></div>
  </div>
  <div class="wire"><%= image_tag('valleyer/wire.jpg') %></div>
  <% form_for @logo,
    :url => valleyers_show_logos_url,
    :html => {
    :id => :edit_logo_form,
    :multipart => true
  } do |f| %>
    <div class="import">
      <div class="logo"><p><%= image_tag('valleyer/logo/edit_logo.jpg') %></p></div>
      <div class="inputs">
        <dl>
          <dt>选一张电脑里的照片做头像：</dt>
          <dd>
            <%= f.file_field :image_file,:title => '请注意：图片大小不能超过4m。为了减少无聊的上传时间，建议您的图片的分辨率控制在640x480左右。' %>
          </dd>
        </dl>
      </div>
    <% end %>
    <div class="explain">
      <ul>
        <li>支持JPG、JPEG、PNG、GIF格式的图片</li>
        <li>上传的照片容量请不要超过2M</li>
        <li>照片的尺寸请不要超过200*200像素</li>
      </ul>
    </div>
    <div class="bottom">
      <%= link_to_function image_tag("valleyer/edit_picture_fixed.jpg"), '$("edit_logo_form").submit();' %>
      <%= link_to image_tag("valleyer/edit_picture_cancel.jpg"), valleyer_url(current_valleyer ) %>
    </div>
  </div>
</div>
